﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Dashboard.Master" Inherits="System.Web.Mvc.ViewPage<ComLib.CMS.Areas.Admin.ConfigViewModel>" %>
<%@ Import Namespace="ComLib" %>
<%@ Import Namespace="ComLib.Web.Lib.Models" %>
<%@ Import Namespace="ComLib.CMS.Areas.Admin" %>
<%@ Import Namespace="ComLib.Configuration" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="contentItem">    
        <div class="header"><h2>Edit <%= Model.Name %> Setting(s)</h2></div><br />
        
        <% using (Html.BeginForm("Save", "Config"))
           { %>
            <div class="form">
                <%= Html.Hidden("confignameInForm", Model.Name)%>      
                <%= Html.EditorFor( m => m.Config) %>                
            </div>
            <input type="submit" class="action" value="Save" />
        <% } %>
    
    </div>
</asp:Content>